package com.yuyu.shop.domain.goods.repository;

import com.yuyu.shop.domain.goods.DO.GoodsDO;

import java.util.List;

/**
 * @author
 * @description: goods接口
 * @date: 2022/8/4 14:12
 */
public interface GoodsRepository {

    /**
     * 用goodsId获取goods
     * @param id
     * @return OrderDO
     */
    GoodsDO getById(Long id);


    List<GoodsDO> getAll();
}
